package random;

import java.util.Arrays;

/**
 * 剑指 Offer II 071. 按权重生成随机数
 */
public class P071 {


    public static void main(String[] args) {
        String str = "cba";
        char[] chars = str.toCharArray();
        Arrays.sort(chars);
        String s = new String(chars);
        System.out.println(s);
    }


}
